package com.xbao.service;

import com.xbao.model.EmpOrgRel;
import com.xbao.model.Rule;
import com.xbao.model.vo.OrgVo;
import com.xbao.wchat.model.WxCommon;
import com.xbao.core.component.page.Pagination;
import com.xbao.model.Emp;
import com.xbao.model.EmpRule;
import com.xbao.model.req.EmpReq;
import com.xbao.model.req.EmpRuleReq;
import com.xbao.model.vo.EmpVo;
import com.xbao.model.vo.RuleVo;

import java.util.List;

/**
 * Created by qingshengzheng on 18/8/24.
 */
public interface EmpService {
    public void addEmp(EmpReq emp);

    public void deleteEmp(Long id);

    public void updateEmp(Emp emp);

    public void sendVcode(Emp emp);

    public EmpVo detailEmp(Long id);

    public EmpVo detailEmpByOpenId(String openid);

    public EmpVo detailOneEmp(EmpReq empReq);

    public EmpVo loginByThrid(EmpReq empReq);

    public EmpVo loginByMobile(EmpReq empReq);

    public List<EmpVo> queryEmpList(EmpReq empReq);

    public void setEmpRule(List<EmpRule> rule);

    public List<Rule> getEmpRules(Long eid);

    public void updatePwd(EmpReq empReq);

    public Integer noPeriodEmpCount(Long time);

    public Pagination<EmpVo> noPeriodEmps(Long time);

     public Integer countEmpsFOfOrg(Long orgid);

    public void addEmpRules(List<EmpRule> rules);

    public EmpVo detailEmpBySkey(String skey);

    public EmpVo updateEmpByWxCommon(WxCommon wxCommon);

    public void addEmpByWxCommon(WxCommon wxCommon);

    public List<OrgVo> getOrgsOfEmp(Long eid);

    public void selectDefaultRel(EmpOrgRel rel);







}
